package com.dog.framework.redis.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liuxk
 * @date 2024/1/5 15:35
 *
 */
@Getter
@AllArgsConstructor
public enum RedisMqEnum {


    GATEWAY_WHITE_URL_UPDATE("10001", "网关白名单变更"),

    ROLE_RESOURCES_UPDATE("20001", "角色资源变更");

    private String code;
    private String name;


    public static RedisMqEnum valueOf(Integer code) {
        for (RedisMqEnum value : values()) {
            if (value.code.equals(code)) {
                return value;
            }
        }
        return null;
    }


}
